import request from '@/utils/request'

// 查询台风轨迹列表
export function listTyphoonTrace(query) {
  return request({
    url: '/TyphoonLand/typhoonTrace/list',
    method: 'get',
    params: query
  })
}

// 查询台风轨迹详细
export function getTyphoonTrace(traceId) {
  return request({
    url: '/TyphoonLand/typhoonTrace/' + traceId,
    method: 'get'
  })
}

// 新增台风轨迹
export function addTyphoonTrace(data) {
  return request({
    url: '/TyphoonLand/typhoonTrace',
    method: 'post',
    data: data
  })
}

// 修改台风轨迹
export function updateTyphoonTrace(data) {
  return request({
    url: '/TyphoonLand/typhoonTrace',
    method: 'put',
    data: data
  })
}

// 删除台风轨迹
export function delTyphoonTrace(traceId) {
  return request({
    url: '/TyphoonLand/typhoonTrace/' + traceId,
    method: 'delete'
  })
}
